<?php echo CHtml::beginForm(); ?>

<?php echo CHtml::errorSummary($model); ?>

<?php

if ($model->next_date != null && $model->next_date != "")
	$model->next_date = Constants::fromSqlDate($model->next_date);

echo CHtml::activeHiddenField($model, 'project_id') . "\n";
echo CHtml::activeHiddenField($model, 'id') . "\n";

?>

<h2><?php echo Yii::t('project', 'End of meeting'); ?></h2>
<?php if (Yii::app()->user->hasFlash('meeting')) { ?>
<div id="flashMsg" class="infoMsg">
<?php echo Yii::app()->user->getFlash('meeting'); ?>
</div>
<?php } ?>
<div class="yiiForm" id="next_objectives">
<div class="simple">
<?php echo CHtml::activeLabelEx($model,'next_date'); ?>
<?php 
echo CHtml::activeTextField($model,'next_date',array('size'=>10,'maxlength'=>10)); 
$p = 'next_date';
$options = array ();
CHtml::resolveNameID($model, $p, $options);
$this->widget('application.extensions.calendar.SCalendar', array (
	'inputField' => $options['id'],
	'dateFormat' => '%d/%m/%Y',
	'date' => $model->next_date
));
?> (dd/mm/yyyy)
</div>

<div class="simple" style="display:block;">
<?php echo CHtml::activeLabelEx($model,'meeting_comment'); ?><br />
</div>
<?php echo CHtml::activeTextArea($model,'meeting_comment', array('style' => 'width:100%; height:400px;')); ?>
<?php
$this->widget('application.extensions.jwysiwyg.JWysiwyg', array(
    'model' => $model,
    'attribute' => 'meeting_comment'
)); 
?>


</div><!-- yiiForm -->

<div class="action">
<?php echo CHtml::submitButton(Yii::t('views', '< Previous'), array('name' => 'prev_button')); ?>
<?php echo CHtml::submitButton(Yii::t('views', 'Save'), array('name' => 'next_button')); ?>
</div>

<?php
$options = array ();
$p = 'meeting_comment';
CHtml::resolveNameID($model, $p, $options);


echo CHtml::endForm();
?>
